From ad27570a65a9ae160d65bf1d80d8c433170f3036 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 25 Sep 2006 09:11:52 +0100 Subject: [PATCH] [TOOLS] Wait for backend devices to set up before resuming execution of a restored guest. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendCheckpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index c0c5e48d48..8e08fb425d 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -161,8 +161,8 @@ def restore(xd, fd): if handler.store_mfn is None or handler.console_mfn is None: raise XendError('Could not read store/console MFN') - #Block until src closes connection - os.read(fd, 1) + os.read(fd, 1) # Wait for source to close connection + dominfo.waitForDevices() # Wait for backends to set up dominfo.unpause() dominfo.completeRestore(handler.store_mfn, handler.console_mfn) -- 2.30.2